<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar" style="height: auto;">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="<%=basePath%>dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>${sessionScope.user.realName}</p>

            </div>
        </div>
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu tree" data-widget="tree">
            <li class="header">菜单</li>
            <c:if test="${sessionScope.user.type == 'A'}">
                <!--系统管理Start -->
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-dashboard"></i>
                        <span>系统管理</span>
                        <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="<%=basePath%>jsp/system/deptgroup.jsp"><i class="fa fa-circle-o"></i> 科室类别管理</a></li>
                        <li><a href="<%=basePath%>jsp/system/dept.jsp"><i class="fa fa-circle-o"></i> 科室管理</a></li>
                        <li><a href="<%=basePath%>jsp/system/user.jsp"><i class="fa fa-circle-o"></i> 用户管理</a></li>
                        <li><a href="<%=basePath%>jsp/evalsystem/question.jsp"><i class="fa fa-circle-o"></i> 问题管理</a></li>
                        <li><a href="<%=basePath%>jsp/evalsystem/paper.jsp"><i class="fa fa-circle-o"></i> 问卷管理</a></li>
                        <li><a href="<%=basePath%>jsp/evalsystem/cyclepage.jsp"><i class="fa fa-circle-o"></i> 调查问卷周期管理</a></li>
                        <li><a href="<%=basePath%>jsp/evalsystem/deptcontact.jsp"><i class="fa fa-circle-o"></i> 科室评价关系管理</a></li>
                    </ul>
                </li>
                <!--系统管理End -->
                <!--报表管理Start -->
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-pie-chart"></i>
                        <span>报表管理</span>
                        <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                    </a>
                    <ul class="treeview-menu">
                        <li ><a href="<%=basePath%>report/rankpage"><i class="fa fa-circle-o"></i> 满意度调查排名</a></li>
                        <li ><a href="<%=basePath%>report/dutyfilereportpage"><i class="fa fa-circle-o"></i> 科室填报情况</a></li>
                        <li ><a href="<%=basePath%>report/dutyEvalDetaillPage"><i class="fa fa-circle-o"></i> 科室被评价情况</a></li>
                    </ul>
                </li>
                <!--报表管理End -->
            </c:if>
            <!--满意度调查Start -->
            <li class="treeview">
                <a href="#">
                    <i class="fa fa-edit"></i>
                    <span>满意度调查</span>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                </a>
                <ul class="treeview-menu">
                    <li class="active"><a href="<%=basePath%>/deptMapper/selectDeptUpcomingPaperPage"><i class="fa fa-circle-o"></i> 调查问卷</a></li>
                    <li class="active"><a href="<%=basePath%>/evalmaster/evalEdMasterPage"><i class="fa fa-circle-o"></i> 查看调查问卷</a></li>
                </ul>
            </li>
            <!--满意度调查End -->
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>

